package com.ruoyi.suggest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.suggest.mapper.ChatSuggestQuestionMapper;
import com.ruoyi.suggest.domain.ChatSuggestQuestion;
import com.ruoyi.suggest.service.IChatSuggestQuestionService;

/**
 * 推荐问题Service业务层处理
 */
@Service
public class ChatSuggestQuestionServiceImpl implements IChatSuggestQuestionService 
{
    @Autowired
    private ChatSuggestQuestionMapper chatSuggestQuestionMapper;

    /**
     * 查询推荐问题列表
     * 
     * @param chatSuggestQuestion 推荐问题
     * @return 推荐问题
     */
    @Override
    public List<ChatSuggestQuestion> selectChatSuggestQuestionList(ChatSuggestQuestion chatSuggestQuestion)
    {
        return chatSuggestQuestionMapper.selectChatSuggestQuestionList(chatSuggestQuestion);
    }

    /**
     * 查询所有启用的推荐问题
     * 
     * @return 推荐问题集合
     */
    @Override
    public List<ChatSuggestQuestion> selectEnabledChatSuggestQuestions()
    {
        return chatSuggestQuestionMapper.selectEnabledChatSuggestQuestions();
    }

    /**
     * 查询推荐问题详细
     * 
     * @param id 推荐问题ID
     * @return 推荐问题
     */
    @Override
    public ChatSuggestQuestion selectChatSuggestQuestionById(Long id)
    {
        return chatSuggestQuestionMapper.selectChatSuggestQuestionById(id);
    }

    /**
     * 新增推荐问题
     * 
     * @param chatSuggestQuestion 推荐问题
     * @return 结果
     */
    @Override
    public int insertChatSuggestQuestion(ChatSuggestQuestion chatSuggestQuestion)
    {
        return chatSuggestQuestionMapper.insertChatSuggestQuestion(chatSuggestQuestion);
    }

    /**
     * 修改推荐问题
     * 
     * @param chatSuggestQuestion 推荐问题
     * @return 结果
     */
    @Override
    public int updateChatSuggestQuestion(ChatSuggestQuestion chatSuggestQuestion)
    {
        return chatSuggestQuestionMapper.updateChatSuggestQuestion(chatSuggestQuestion);
    }

    /**
     * 批量删除推荐问题
     * 
     * @param ids 需要删除的推荐问题ID
     * @return 结果
     */
    @Override
    public int deleteChatSuggestQuestionByIds(Long[] ids)
    {
        return chatSuggestQuestionMapper.deleteChatSuggestQuestionByIds(ids);
    }

    /**
     * 删除推荐问题信息
     * 
     * @param id 推荐问题ID
     * @return 结果
     */
    @Override
    public int deleteChatSuggestQuestionById(Long id)
    {
        return chatSuggestQuestionMapper.deleteChatSuggestQuestionById(id);
    }
} 